Optimal. Leaf size=97 \[ -\frac{\sqrt{\cos ^2(e+f x)} \csc (e+f x) \sec (e+f x) \left (a+b \sin ^2(e+f x)\right )^p \left (\frac{b \sin ^2(e+f x)}{a}+1\right )^{-p} F_1\left (-\frac{1}{2};\frac{1}{2},-p;\frac{1}{2};\sin ^2(e+f x),-\frac{b \sin ^2(e+f x)}{a}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.103825, antiderivative size = 97, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {3188, 511, 510} \[ -\frac{\sqrt{\cos ^2(e+f x)} \csc (e+f x) \sec (e+f x) \left (a+b \sin ^2(e+f x)\right )^p \left (\frac{b \sin ^2(e+f x)}{a}+1\right )^{-p} F_1\left (-\frac{1}{2};\frac{1}{2},-p;\frac{1}{2};\sin ^2(e+f x),-\frac{b \sin ^2(e+f x)}{a}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3188
Rule 511
Rule 510
Rubi steps
\begin{align*} \int \csc ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx &=\frac{\left (\sqrt{\cos ^2(e+f x)} \sec (e+f x)\right ) \operatorname{Subst}\left (\int \frac{\left (a+b x^2\right )^p}{x^2 \sqrt{1-x^2}} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{\left (\sqrt{\cos ^2(e+f x)} \sec (e+f x) \left (a+b \sin ^2(e+f x)\right )^p \left (1+\frac{b \sin ^2(e+f x)}{a}\right )^{-p}\right ) \operatorname{Subst}\left (\int \frac{\left (1+\frac{b x^2}{a}\right )^p}{x^2 \sqrt{1-x^2}} \, dx,x,\sin (e+f x)\right )}{f}\\ &=-\frac{F_1\left (-\frac{1}{2};\frac{1}{2},-p;\frac{1}{2};\sin ^2(e+f x),-\frac{b \sin ^2(e+f x)}{a}\right ) \sqrt{\cos ^2(e+f x)} \csc (e+f x) \sec (e+f x) \left (a+b \sin ^2(e+f x)\right )^p \left (1+\frac{b \sin ^2(e+f x)}{a}\right )^{-p}}{f}\\ \end{align*}
Mathematica [F] time = 4.69994, size = 0, normalized size = 0. \[ \int \csc ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.791, size = 0, normalized size = 0. \begin{align*} \int \left ( \csc \left ( fx+e \right ) \right ) ^{2} \left ( a+b \left ( \sin \left ( fx+e \right ) \right ) ^{2} \right ) ^{p}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \sin \left (f x + e\right )^{2} + a\right )}^{p} \csc \left (f x + e\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (-b \cos \left (f x + e\right )^{2} + a + b\right )}^{p} \csc \left (f x + e\right )^{2}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \sin \left (f x + e\right )^{2} + a\right )}^{p} \csc \left (f x + e\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]